package cn.com.fattiger.framework.remoting.netty4.common.protocol.handle;

import io.netty.channel.Channel;

public abstract class AbstractReceivedHandle<T> implements ReceivedHandle {

	@Override
	public Object received(Channel channel, Object obj) {
		try {
			receivedObject(channel, obj);
		} catch (Exception e) {
			e.printStackTrace();
		}

		return null;
	}

	public abstract void receivedObject(Channel channel, Object obj);

}
